package com.weasing.res.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.weasing.res.dao.IWxQuestionDao;
import com.weasing.res.dao.base.impl.BaseDaoImpl;
import com.weasing.res.domain.WxQuestion;

@Repository
public class WxQuestionDaoImpl extends BaseDaoImpl<WxQuestion> implements
		IWxQuestionDao {

	@Override
	public List<WxQuestion> findWxQuestionByQid(int qid) {
		String hql ="from WxQuestion wq where wq.qgroupid = ?";
		List<WxQuestion> list = (List<WxQuestion>) this.getHibernateTemplate().find(hql, qid);
		return list;
	}

}
